//package com.culturalCenter.dataCenter.globalconfig.hbasee;
//
//import java.io.IOException;
//import java.util.Map;
//import java.util.Set;
//
//import org.apache.hadoop.hbase.HBaseConfiguration;
//import org.apache.hadoop.hbase.client.Admin;
//import org.apache.hadoop.hbase.client.Connection;
//import org.apache.hadoop.hbase.client.ConnectionFactory;
//import org.springframework.boot.context.properties.EnableConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * HBase配置类
// * HBaseConfiguration.create() 会去CLASSPATH,下找hbase-site.xml
// * @author wulincheng
// * @date 2020-7-14 12:11:18
// * https://hbase.apache.org/book.html#faq 官网的
// * http://c.biancheng.net/view/6523.html hbase用法参考
// * */
////@Configuration
// @Slf4j
//public class HBaseConfig {
//
//    @Bean
//    public HbaseTemplate hbaseTemplate() {
//        Connection connection = null;
//        try {
//            org.apache.hadoop.conf.Configuration conf=HBaseConfiguration.create();
//            connection = ConnectionFactory.createConnection(conf);
//        } catch (IOException e) {
//            log.error(e.getMessage(), e);
//        }
//        return  new HbaseTemplate(connection);
//    }
//
//    @Bean
//    public Admin admin() {
//        Admin admin = null;
//        try {
//            org.apache.hadoop.conf.Configuration conf=HBaseConfiguration.create();
//            Connection connection = ConnectionFactory.createConnection(conf);
//            admin = connection.getAdmin();
//        } catch (IOException e) {
//            log.error(e.getMessage(), e);
//        }
//        return admin;
//    }
//}
//
